﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RgChannelBot
{
    public static class Log
    {
        public static void RawOutput(string title, string message, ConsoleColor color = ConsoleColor.White)
        {
            Console.ForegroundColor = color;
            Console.WriteLine($"[{title}] {message}");
            Console.ForegroundColor = ConsoleColor.White;
        }

        public static void Info(object message)
        {
            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine($"[信息] {message}");
            Console.ForegroundColor = ConsoleColor.White;
        }

        public static void Warn(object message)
        {
            Console.ForegroundColor = ConsoleColor.Yellow;
            Console.WriteLine($"[警告] {message}");
            Console.ForegroundColor = ConsoleColor.White;
        }

        public static void Error(object message)
        {
            Console.ForegroundColor = ConsoleColor.Red;
            Console.WriteLine($"[错误] {message}");
            Console.ForegroundColor = ConsoleColor.White;
        }
    }
}